package com.zc.service.two;

public class CashContext {
    private CashSuper cs;

    public CashContext(int type ,Object data) {
        this.cs = CashFactory.getInstance(type, (double)data);
    }
    public double  getResult(double cash){
        return cs.acceptCash(cash);
    }
}
